package com.ysjy;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//(scanBasePackages = "com.wkbb.common")
@EnableTransactionManagement
@MapperScan({"com.ysjy.course.mapper","com.wkbb.sports.mapper"})
@SpringBootApplication
@EnableSwagger2
@EnableDiscoveryClient
@EnableFeignClients
@Slf4j
public class CourseApplication {
    public static ConfigurableApplicationContext applicationContext;


    public static void main(String[] args) {
        applicationContext = SpringApplication.run(CourseApplication.class, args);
    }

}
